package com.kun.remote;

import com.kun.constant.ServiceConstant;
import com.kun.entity.SysTenant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author kun.li
 */
@FeignClient(contextId = "remoteTenantService", value = ServiceConstant.SYSTEM_SERVICE_NAME, path = "/tenant")
public interface RemoteTenantService {

    @GetMapping("getSysTenant")
    SysTenant getSysTenant(@RequestParam("tenantId") String tenantId);
}
